package com.yht.weblog.admin.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @author: yht
 * @date: 2024/1/25 0:00
 * @description:
 **/
@Getter
public class ReadArticleEvent extends ApplicationEvent {
    /**
     * 文章id
     */
    private Long articleId;

    /**
     * 构造一个ReadArticleEvent对象
     *
     * @param source 事件源
     * @param articleId 文章ID
     */
    public ReadArticleEvent(Object source, Long articleId) {
        super(source);
        this.articleId = articleId;
    }
}
